﻿using Csla.Data;

namespace Accounting.Library
{
    public class PhuongThucThanhToanService
    {
        public static int ThanhToanNgay = 1;
        public static int ThanhToanCongNo_TienMat = 2;
        public static int ThanhToanCongNo_ChuyenKhoan = 3;

        /// <summary>
        /// Xet xem phuong thuc thanh toan co phai la thanh toan bang cong no hay khong
        /// </summary>
        /// <param name="ctx">Data access context</param>
        /// <param name="khoa">Ma phuong thuc thanh toan</param>
        /// <returns></returns>
        public static bool ThanhToanBangCongNo(ContextManager<Accounting.DataAccess.AccountingDataContext> ctx, int khoa) 
        {
            bool result = false;
            if (khoa != ThanhToanNgay)
                result = true;
            return result;
        }
    }
}
